#include "widget.h"
#include "ui_widget.h"
#include <QDebug>
Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
    ui->verticalSlider_1->setMinimum(600);
    ui->verticalSlider_1->setMaximum(1200);
    ui->verticalSlider_1->setValue(600);
    ui->verticalSlider_1->setPageStep(100);
    ui->verticalSlider_1->setTracking(true);
//    ui->verticalSlider_1->setSingleStep(50);

    ui->setupUi(this);
    ui->horizontalSlider_2->setMinimum(800);
    ui->horizontalSlider_2->setMaximum(1600);
    ui->horizontalSlider_2->setValue(800);
//    ui->horizontalSlider_2->setSingleStep(50);
    ui->horizontalSlider_2->setPageStep(100);
    ui->horizontalSlider_2->setTracking(true);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_horizontalSlider_2_valueChanged(int value)
{
    QRect rect = this->geometry();
    this->setGeometry(rect.x(),rect.y(),value,rect.height());
    qDebug() << value;
}

void Widget::on_verticalSlider_1_valueChanged(int value)
{
    QRect rect = this->geometry();
    this->setGeometry(rect.x(),rect.y(),rect.width(),value);
    qDebug() << value;
}
